// pages/movie-more/movie-more.js
const https = require("../../model/movieHome")
const {titles} = require("../../static/data")
Page({
  data: {
    moremovies:"",
    keyword:""
  },
  onLoad: function (options) {
    var {keyword,title} = options;
    console.log(options)
    var http = https[keyword]
    http().then(res=>{
      this.setData({
        moremovies:res.data.res,
        keyword
      })
    })
    wx.setNavigationBarTitle({
      title,
    });
  },
})